package Array.mOop;

public class TestStudent {
    public static void main(String[] args){
        //类名 对象名 = new 类名();
        Student stu = new Student();
        //默认初始化值
        System.out.println(stu.name);//null
        System.out.println(stu.age); //0
        //对象名.变量名
        stu.name="张三";
        stu.age=23;
        System.out.println(stu.name);//张三
        System.out.println(stu.age); //23
        //对象名.方法名();
        stu.study();
    }
}
